package chapter03;

import java.util.Arrays;

public class OneArrayTest {
    public static void main(String[] args) {
        int[] intArr1 = new int[2];
        int[] intArr2 = new int[]{1, 2};
        int[] intArr3;
        intArr3 = new int[]{2, 3};
        int[] intArr4 = {5, 6};

        System.out.println(Arrays.toString(intArr1));
        System.out.println(Arrays.toString(intArr2));
        System.out.println(Arrays.toString(intArr3));
        System.out.println(Arrays.toString(intArr4));

        System.out.println("-----------");
        int[] intArr = new int[2];
        double[] doubleArr = new double[2];
        char[] charArr = new char[2];
        boolean[] booleanArr = new boolean[2];
        String[] stringArr = new String[2];

        System.out.println(Arrays.toString(intArr));
        System.out.println(Arrays.toString(doubleArr));
        System.out.println(Arrays.toString(charArr));
        System.out.println(Arrays.toString(booleanArr));
        System.out.println(Arrays.toString(stringArr));
        System.out.println('\u0000');
    }
}
